* {
    margin: 0;
    padding: 0;
}
body {
    background-color: #f3f5f7;
}
/* 头部 */
.w {
    width: 1200px;
    margin: auto;
}
li {
    list-style: none;
}
a {
    text-decoration: none;
}
.header {
    margin: 30px auto;
    height: 42px;
}
.logo {
    float: left;
    width: 198px;
    height: 42px;
}
.nav {
    float: left;
    margin-left: 60px;
}
.nav ul li {
    float: left;
    margin: 0 15px;
}
.nav ul li a {
    display: block;
    height: 42px;
    padding: 0 10px;
    font-size: 18px;
    color: #050505;
    line-height: 42px;
}
.nav ul li a:hover {
    border-bottom: 2px solid #00a4ff ;
    color: #00a4ff;
}
.search {
    float: left;
    margin-left: 70px;
    width: 412px;
    height: 42px;
}
.search input {
    float: left;
    width: 345px;
    height: 40px;
    border: 1px solid #00a4ff;
    border-right: 0;
    color: #bfbfbf;
    font-size: 14px;
    padding-left: 15px;
}
.search button {
    float: left;
    width: 50px;
    height: 42px;
    border: 0;
    background-image: url(./images/fa-search.png);
}
.user {
    float: right;
    line-height: 42px;
    margin-right: 30px;
    font-size: 14px;
    color: #666;
    
}
/* banner */
.banner {
    height: 421px;
    background-color: #1c036c;
}
.banner .w {
    height: 421px;
    background: url(./images/banner2.png) no-repeat top center;
}
.subnav {
    float: left;
    width: 190px;
    height: 421px;
    background:rgba(0,0,0,.3)
}
.subnav ul li {
    padding: 0 20px;
    height: 46px;
    line-height: 45px;
}
.subnav ul li a {
    display: block;
    font-style: 14px;
    color: #fff;
}
.subnav ul li a span {
    float: right;
}
.subnav ul li a:hover {
    color: #00a4ff;
}
.course {
    float: right;
    margin-top: 50px;
    width: 230px;
    height: 300px;
    background-color: #fff;
}
.course h2 {
    height: 48px;
    background-color: #9bceea;
    text-align: center;
    line-height: 48px;
    font-size: 18px;
    color: #fff;
}
.course .bd {
    padding: 0 20px;
}
.course .bd ul li {
    padding: 14px 0;
    border-bottom: 1px solid #ccc;
}
.course .bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}
.course .bd ul li p {
    font-size: 12px;
    color: #a5a5a5;
}
.course .bd a {
    display: block;
    height: 38px;
    border: 1px solid #00a4ff;
    margin-top: 5px;
    text-align: center;
    line-height: 38px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    color: #00a4ff;
}
/* 精品推荐模块 */
.goods {
    margin-top: 10px;
    height: 60px;
    box-shadow: 0 2px 3px 3px rgba(0,0,0,0.1) ;
    background-color: #fff;
    /* 行高会继承 */
    line-height: 60px;
}
.goods h3 {
    float: left;
    margin-left: 30px;
    font-size: 16px;
    color: #00a4ff;
}
.goods ul {
    float: left;
    margin-left: 30px;
}
.goods .mod {
    float: right;
    margin-right: 30px;
    font-size: 14px;
    color: #00a4ff;
}
.goods ul li {
    float: left;
}
.goods ul li a {
    padding: 0 30px;
    font-size: 16px;
    color: #050505;
    border-left: 1px solid #ccc;
}
/* box核心模块 */
.box {
    margin-top: 30px;
}
.box-hd {
    height: 42px;
}
.box-hd h3 {
    float: left;
    font-size: 20px;
    color: #494949;
}
.box-hd a {
    float: right;
    font-size: 12px;
    color: #a5a5a5;
    margin-top: 10px;
    margin-right: 30px;
}
.box .box-bd ul {
    width: 1225px;
}
.clearfix:before, 
.clearfix:after {
content:""; 
display:table;
}
.clearfix:after {
clear :both;
}
.clearfix {
*zoom: 1;
}
.box .box-bd ul li {
    float: left;
    width: 228px;
    height: 270px;
    background-color: #fff;
    margin-right: 15px;
    margin-bottom: 15px;
}
.box .box-bd ul li img {
    width: 100%;
}
.box .box-bd ul li h4 {
    margin: 20px 20px 20px 25px;
    font-size: 14px;
    color: #050505;
    font-weight: 400;
}
.box .box-bd ul li .info {
    margin: 0 20px 0 25px;
    font-size: 12px;
    color: #999;

}
.box .box-bd ul li .info span {
    color: #ff7c2d;
}
.footer {
    height: 415px;
    background-color: #fff;
}
.footer .w {
    padding-top: 35px;
}
.copyright {
    float: left;
}
.copyright p {
    margin: 20px 0 15px 0 ;
    font-size: 12px;
    color: #666;
}
.copyright .app {
    display: block;
    width: 118px;
    height: 33px;
    border: 1px solid #00a4ff;
    text-align: center;
    line-height: 33px;
    font-size: 16px;
    color: #00a4ff;
}
.links {
    float: right;
}
.links dl {
    float: left;
    margin-left: 100px;
}
.links dl dt {
    font-size: 16px;
    color: #333;
}
.links dl  dd a {
    color: #333;
    font-size: 12px;
    margin-bottom: 5px;
}
/* 编程入门开始 */
.box1 {
    margin-top: 25px;
}
.box1-hd {
    height: 42px; 
}
.box1-hd h3{
    float: left;
    margin-right: 150px;
    font-size: 20px;
    color: #494949;
}
.box1-hd ul {
    float: left;
    margin-left: 168px;
}
.box1-hd ul li {
    float: left;
    margin: 5px 35px 0 35px;
}
.box1-hd ul li a {
    font-size: 16px;
    color: #868686;
}
.box1-hd ul li a:hover {
    color: #00a4ff;
}
.box1-bd {
    height: 392px;
    margin-bottom: 15px;
}
.box1-bd .box1-1 {
    float: left;
    margin-right: 15px;
}
.box1-bd .box1-1 img {
    width: 100%;
}
.box1-bd .box1-2 {
    float: left;
    width: 957px;
}
.box1-2 ul {
    width: 992px;
}
.box1-2 ul li {
    float: left;
    margin: 20px 15px 0 0;
    width: 228px;
    height: 270px;
    background-color: #fff;
}
.box1-2 ul li img {
    width: 100%;
}
.box1-2 ul li h3 {
    margin: 20px 20px 20px 25px;
    font-size: 14px;
    color: #050505;
}
.box1-2 ul li div {
    margin-left: 25px;
    font-size: 12px;
    color: #999999;
}
.box1-2 ul li div span {
    color: #ff7c2d;
}